Add information on video codecs and conversion of video files#24
Merged
mschwan-phytec merged 3 commits intomainfrom Mar 25, 2026
Merged
Add information on video codecs and conversion of video files#24mschwan-phytec merged 3 commits intomainfrom
mschwan-phytec merged 3 commits intomainfrom
Conversation
Correct the file icon to display the correct icon in the file dialog instead of the .notdef glyph. Signed-off-by: Tobias Hahn <t.hahn@phytec.de>
3cdedbb to
86b6bfa
Compare
Add a page that can be opened in both multimedia pages to display available video codecs for encoding and decoding and whether they are hardware accelerated or not. In the file dialog there is a new column that lists the video codecs that are used in video files. Using the convert button in the file dialog allows the conversion of video files to different formats, codecs and resolutions. Video files using software codecs can be converted to hardware accelerated videos to allow faster playback for example. Signed-off-by: Tobias Hahn <t.hahn@phytec.de>
Install gstreamer dependency to allow the building with the information on video codecs and conversion of video files.
86b6bfa to
653e90c
Compare
mschwan-phytec
approved these changes
Mar 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a page that can be opened in both multimedia pages by pressing the information icon in the toolbar, which displays available video and audio codecs for encoding and decoding and whether they are hardware accelerated or not.
A codec is regarded as hardware accelerated if it can be found in the caps (source caps for encode; sink caps for decode) of a gstreamer element factory, which meets any of the following conditions:
256/GST_RANK_PRIMARYvpu(e.g. vpudec / vpuenc_h264)GST_ELEMENT_FACTORY_TYPE_HARDWAREGST_ELEMENT_FACTORY_KLASS_HARDWAREIn the file dialog there is a new column that lists the video codecs that are used in video files. If the discovery of codecs fails with an error
unknownis displayed instead. If the discovery fails because there are plugins missing (e.g. if a codec in the video can't be decoded) or if the qmlsink is used and there is not at least 1 video and 1 audio streamunsupportedis displayed. If discovery fails for a different reasonfailedis displayed instead. If any of the 3 messages is displayed, the video is additionally disabled in the file dialog. GstDiscoverer is used for discovery.Using the convert button in the file dialog allows the conversion of video files to different formats, codecs and resolutions. The options for file extensions and codecs are selected based on the selected container format. When selecting codecs using the combo box, hardware codecs are displayed normally while software codecs are displayed in italic. Selectable resolutions are "keep the current resolution" (empty combo box), 960x540, 1280x720, 1600x900 and 1920x1080.